<?php
/**
 * The following variables are available in this template:
 * - $this: the BootCrudCode object
 */
echo "<?php\n";
echo "\$properties = array(
	'action'=>Yii::app()->createUrl(\$this->route),
	'method'=>'get',
);\n";
echo "\$form = \$this->beginWidget('bootstrap.widgets.TbActiveForm', \$properties);\n";

$excludedColumns = array('createdAt', 'createdBy', 'updatedAt', 'updatedBy');
foreach ($this->tableSchema->columns as $column) {
	$field = $this->generateInputField($this->modelClass, $column);
	if (strpos($field, 'password') !== false) {
		continue;
	}
	echo "\n";
	echo $this->generateActiveRow($this->modelClass, $column);
	echo "\n";
}
echo "?>\n\n";
?>
<div class="form-actions">
	<?php
	echo "<?php\n";
	echo "\t\$properties = array(
		'buttonType'=>'submit',
		'type'=>'primary',
		'label'=>'Search',
	);\n";
	echo "\t\$this->widget('bootstrap.widgets.TbButton', \$properties);\n";
	echo "\t?>\n";
	?>
</div>

<?php echo "<?php \$this->endWidget(); ?>\n"; ?>